﻿#region
/*******************************************************************************
** File Name:		    ICategory.cs
** Creator:		        chao.jiang 
** EMail:               chao.jiang 
** Create date:	        
** Latest Modifier:
** Latest Modify date:
** Description:		    
** Modify History:
**
** Code Review:
**
** Version number:       1.0.0
*********************************************************************************/
#endregion
using System;
using System.Data;
using System.Collections.Generic;
using Phoenix.Entity;
namespace Phoenix.Respository
{
	public interface ICategory
	{
		#region  Auto Generation

		void AddCategory(ECategory category);

		void UpdateByCategoryID(ECategory category);

		void DeleteByCategoryID(System.Int32 categoryID);

		ECategory GetByCategoryID(System.Int32 categoryID);

		IList<ECategory> GetAll();

		#endregion

		IList<ECategory> GetByParentID(int pid);
	}
}